package com.gitee.wsl.common.more.ext.glide.ext

import com.bumptech.glide.load.Key
import com.bumptech.glide.load.Key.CHARSET
import com.bumptech.glide.signature.EmptySignature
import java.security.MessageDigest

data class OriginalKey(val id:String,val signature:Key= EmptySignature.obtain()): Key {
    override fun updateDiskCacheKey(messageDigest: MessageDigest) {
        messageDigest.update(id.toByteArray(CHARSET));
        signature.updateDiskCacheKey(messageDigest);
    }
}